/**
 * IndexTopicDto.java
 */
package com.mht2017.common.dto;

import java.util.List;

/**
 * @author yutong.xiao
 * @date 2017年2月27日 下午3:36:08
 */
public class IndexTopicDto {

	private String index;
	private List<String> topics;
	private List<String> tables;

	public IndexTopicDto() {
	}

	public IndexTopicDto(String index, List<String> topics) {
		this.index = index;
		this.topics = topics;
	}

	public IndexTopicDto(String index, List<String> topics, List<String> tables) {
		this.index = index;
		this.topics = topics;
		this.tables = tables;
	}

	public String getIndex() {
		return index;
	}

	public void setIndex(String index) {
		this.index = index;
	}

	public List<String> getTopics() {
		return topics;
	}

	public void setTopics(List<String> topics) {
		this.topics = topics;
	}

	public List<String> getTables() {
		return tables;
	}

	public void setTables(List<String> tables) {
		this.tables = tables;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (index == null ? 0 : index.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		IndexTopicDto other = (IndexTopicDto) obj;
		if (index == null) {
			if (other.index != null) {
				return false;
			}
		} else if (!index.equals(other.index)) {
			return false;
		}
		return true;
	}

}
